<%@page contentType="text/html" %>
<%@page pageEncoding="UTF-8" %>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Goodwill - Отписаться от рассылки</title>
    <link rel="stylesheet" href="resources/css/main.css"/>
    <link rel="stylesheet" href="resources/css/stylesheet.css"/>
    <link rel="stylesheet" href="resources/css/clients.css"/>
    <style type="text/css">
        .star {
            font-weight: bold;
            font-size: 160%;
            vertical-align: top;
            color: red;
        }
    </style>
</head>
<body>
<f:view>
    <jsp:include page="ClientHeaderWithoutSearch.jsp"/>
    <jsp:include page="messages.jsp"/>
    <h:form>
        <center>
            <rich:panel styleClass="reg_pane">
                <f:facet name="header">
                    <h:outputText value="Ваш профиль"/>
                </f:facet>
                <h:panelGrid columns="2" cellpadding="0" cellspacing="0" columnClasses="cl_l,cl_r">
                    <h:outputText value="Название компании"/>
                    <h:outputText value="#{unsubscribe.client.companyName}"/>
                    <h:outputText value="Email"/>
                    <h:outputText value="#{unsubscribe.client.contactEmail}"/>
                    <h:outputText value="Контактное лицо"/>
                    <h:outputText value="#{unsubscribe.client.contactFio}"/>
                    <h:outputText value="Рассылка остатков"/>
                    <h:selectOneMenu value="#{unsubscribe.restsExportCrontab}">
                        <f:selectItems value="#{unsubscribe.restsExportCrontabs}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:panelGrid columns="2" styleClass="full" columnClasses="butLeft,butRight" cellspacing="0" cellpadding="0">
                    <a4j:commandButton value="Сохранить"
                                       action="#{unsubscribe.save}"
                                       styleClass="btnsz" style="margin-top:5px;height:22px;"/>
                    <a4j:commandButton value="Отписаться"
                                       action="#{unsubscribe.doUnsubscribe}"
                                       styleClass="btnsz" style="margin-top:5px;height:22px;"/>
                </h:panelGrid>
            </rich:panel>


        </center>
    </h:form>
</f:view>
</body>
</html>